package com.chb.app.feign;

import com.chb.app.factory.UserFallbackFactory;
import com.hos.entity.sys.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: 陈海彬
 * @date: Created in 2023/12/11 20:00
 * @description:
 * @modified By:
 * @version:
 */
@FeignClient(name = "hos-system", fallbackFactory = UserFallbackFactory.class)
public interface UserFeign {


    /**
     * 根据手机号查询所属的用户信息
     *
     * @param phone 手机号
     */
    @GetMapping("/system/user/selectUserByPhone/{phone}")
    User selectUserByPhone(@PathVariable String phone);

}
